package leetcodecompetition.D347;

/**
 * @Author: Siantar
 * @Date: 2023-05-28-10:36
 * @Description: 1.0
 */
public class T6457 {
    public String removeTrailingZeros(String num) {
        int left = num.length() - 1;
        while (num.charAt(left) == '0') left--;
        return num.substring(0,left+1);
    }
}
